#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:wordbook.py
# author:fuqihong
# datetime:2024/12/4 17:30
# software: PyCharm
"""
this is function  description 
"""
# import module your need

from . import db, BaseModel


class Wordbook(db.Model):
    __tablename__ = 'wordbook'

    auto_id = db.Column(db.BigInteger, primary_key=True, info='自增主键')
    wordbook_id = db.Column(db.Integer, info='生词本id')
    wordbook_name = db.Column(db.String(255, 'utf8mb4_general_ci'), info='生词本名')
    user_id = db.Column(db.Integer, info='用户id')
    is_delete = db.Column(db.Integer, server_default=db.FetchedValue(), info='是否删除')
    create_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='创建记录时间')
    update_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='更新记录时间')
